import axios from 'src/api/common/axioswarpper.js'
let prefix = process.env.API_PREFIX;


export const post_football_sportTeam = (
    params,
    url = "/football/sportTeam"
  ) => axios.post(`${prefix}${url}`, params);

export const post_football_sportTeam_queryTeam = ( // 指定条件分页查询球队信息........
    params,
    url = "/sportTeam/queryTeam"
  ) => {
    return axios.post(`${prefix}${url}`, params);
  }


export const post_fsportTeam_associate = ( // 把第三方球队关联到标准球队........
    params,
    url = "/sportTeam/associate"
  ) => {
    return axios.post(`${prefix}${url}`, params);
  }






export const get_football_sportTeam_page = (params, url = "/football/sportTeam/page") =>   // 不需要参数   10条数据  不知道干啥的 
    axios.get(`${prefix}${url}`, { params: { ...params } });

export const get_sportTeam_id = (params, url = "/sportTeam") =>   // 查找某id数据 参数  id 
    axios.get(`${prefix}${url}`, { params: { ...params } });

    
export const get_football_sportTeam_query_matchId = (params, url = "/football/sportTeam/query") =>   // 根据联赛id查询球队信息
    axios.get(`${prefix}${url}`, { params: { ...params } });

    // export const get_query_matchId = (params, url = "/football/sportTeam/page") => {
    //     return axios.get(`http://localhost:8090/${prefix}${url}`, { params: { ...params } });
    // }
      // 根据联赛id查询球队信息
    